<!--
 * @Author: jiangyg email@jiangyg.com
 * @Date: 2022-12-03 23:02:41
 * @LastEditors: jiangyg email@jiangyg.com
 * @LastEditTime: 2022-12-03 23:12:45
 * @FilePath: /frontend/mall-frontend/src/views/middle.vue
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template></template>

<script lang="ts" setup>
import { useRouter } from "vue-router";

const router = useRouter();

router.push({
  name: "search",
  query: router.currentRoute.value.query,
  params: router.currentRoute.value.params,
});
</script>